package com.changgou.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class Message implements Serializable {
    //消息类型
    private String type;

    //操作类型--商品审核
    public static final String TYPE_GOODS_AUDIT = "1";

    //操作类型--商品删除
    public static final String TYPE_GOODS_DELETE = "2";

    //消息内容
    private Object content;

    public Message(String type, Object content) {
        this.type = type;
        this.content = content;
    }
}
